import { useContext } from "react";
import MyContext from "./MyContext";


function Context(){
    
    function A(){
        const value = useContext(MyContext);
        return (
            <div>
                <h1>{value}</h1>
            </div>
        )
    }
    return (
        <div>
            <h1>Context</h1>
            <A></A>
        </div>
    )
}

export default Context;